Assignment 8
Original plot
Fixed plot
Main changes:
- Size of circles is now smaller to not repeat information and to make it more visible
- Legend is grouped by main species name so it is not overwhelming and easier to distinguish
- Plot is wider making it less compressed
- Specific species names are shown when pointed on specific circles
Additional information could be presented on different plots to keep them simple and clean.
Code changes inside plots
# creating species groups
wykres_combined_10 <- wykres_combined_10 %>%
mutate(SpeciesGroup = word(Species, 1))
# applying it to plots instead of ~Species
color = ~SpeciesGroup,
legendgroup = ~SpeciesGroup
#removed
marker = list(sizemode = 'diameter')
#legend changed from
layout(legend = list(x = 1.5, y = 0, xanchor = "right", yanchor = "bottom"))
#to
legend = list(x = 1.5, y = 0.5, xanchor = "right", yanchor = "upper")